package com.itheima.Demo01.demo01;


public enum Season {
//    SPRING,SUMMER,AUTUMN,WINTER;
    SPRING("春") {
        @Override
        public void show() {
            System.out.println(this.name);
        }
    },
    SUMMER("夏"
    ) {
        @Override
        public void show() {
            System.out.println(this.name);

        }

    },
    AUTUMN("秋") {
        @Override
        public void show() {
            System.out.println(this.name);

        }
    },
    WINTER("冬") {
        @Override
        public void show() {
            System.out.println(this.name);
        }
    };

    public String name;

    Season(String name) {
        this.name = name;
    }

    Season() {
    }

    public abstract void show();
}
